import java.util.ArrayList;


public class Intermediate extends ArrayList<Line> {	
	
	public void addLine(Line line){
		this.add(line);
	}
	
	public Line getLine(int linenumber){
		return this.get(linenumber);
	}
	
	public int errorCount(){
		int total = 0;
		for(Line l:this){
			total += l.getErrors().size();
		}
		return total;
	}
}
